package com.example.lenovo.weekddms;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.widget.Button;
import android.util.Log;
import android.view.View;

public class MainActivity extends ActionBarActivity {
    private static final String ACTIVITY_TAG="MainActivity";
    private Button bt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        bt = (Button)findViewById(R.id.bt);
        bt.setOnClickListener((v)  {
                Log.v(MainActivity.ACTIVITY_TAG, "1");
        Log.d(MainActivity.ACTIVITY_TAG, "2");
        Log.i(MainActivity.ACTIVITY_TAG, "3");
        Log.w(MainActivity.ACTIVITY_TAG, "4");
        Log.e(MainActivity.ACTIVITY_TAG, "5");
        }  }

        );
    }
}
